package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Daily;
import cn.wolfcode.trip.base.domain.DailyContent;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.SearchQueryObject;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

public interface IDailyService {

    PageInfo query(QueryObject qo);


    Daily selectById(Long id);

    DailyContent selectContentById(Long id);

    void saveOrUpdate(Daily daily, MultipartFile file);

    PageInfo<Daily> queryForApp(QueryObject qo);

    Daily selectHotDaily(Integer sequence);

    void updateBrowseNumById(Long id);

    int queryForCount(SearchQueryObject qo);
}
